﻿using System;
using System.Linq;
using Dpy.Math.Algebra;
using Dpy.Math;
using Dpy.Math.Geometry.Geometry2D;

namespace MathClient
{
    class Program
    {
        static void Main(string[] args)
        {
            //SetConsoleSizeAndColor();
            //VectorTests.Run();
            //MatrixTests.Run();     
            //MatrixTests.RunGaussJordanTests();

            Circle circle = new Circle(new Vector2D(550, 203.2768), 50);
            LineSegment2D segment = new LineSegment2D(new Vector2D(600, 0), new Vector2D(600, 300));

            Console.WriteLine(segment.IntersectWith(circle)[0]);
        }

        public static void SetConsoleSizeAndColor()
        {
            Console.ForegroundColor = ConsoleColor.White;
            Console.WindowWidth = 80;
            Console.WindowHeight = 40;
            Console.BufferWidth = 80;
            Console.BufferHeight = 800;
        }
    }
}
